package com.ljy.springcloud.service;

import com.ljy.springcloud.entities.CommonResult;
import com.ljy.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "cloud-payment-service")
public interface PaymentService {
    @GetMapping("/payment/find/{id}")
    CommonResult<Payment> find(@PathVariable(name = "id") Integer id);
}
